home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12381 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 6e 6b 6e 2e 6e |Path: ne|ws.nkn.n|
|00000010| 65 74 21 61 70 70 6c 69 | 6e 6b 21 68 61 73 6b 65 |et!appli|nk!haske|
|00000020| 74 74 0a 46 72 6f 6d 3a | 20 42 72 69 61 6e 20 48 |tt.From:| Brian H|
|00000030| 61 73 6b 65 74 74 20 3c | 68 61 73 6b 65 74 74 40 |askett <|haskett@|
|00000040| 61 70 70 6c 69 6e 6b 2e | 6e 65 74 3e 0a 4e 65 77 |applink.|net>.New|
|00000050| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 6c 61 |sgroups:| comp.la|
|00000060| 6e 67 2e 63 2b 2b 0a 53 | 75 62 6a 65 63 74 3a 20 |ng.c++.S|ubject: |
|00000070| 52 65 3a 20 74 65 6d 70 | 6c 61 74 65 20 69 6e 73 |Re: temp|late ins|
|00000080| 74 61 6e 74 69 61 74 69 | 6f 6e 20 28 77 61 73 20 |tantiati|on (was |
|00000090| 70 61 73 73 69 6e 67 20 | 72 65 66 65 72 65 6e 63 |passing |referenc|
|000000a0| 65 73 20 74 6f 20 63 6f | 6e 74 61 69 6e 65 72 73 |es to co|ntainers|
|000000b0| 3f 29 0a 44 61 74 65 3a | 20 54 75 65 2c 20 31 39 |?).Date:| Tue, 19|
|000000c0| 20 4d 61 72 20 31 39 39 | 36 20 31 33 3a 33 38 3a | Mar 199|6 13:38:|
|000000d0| 30 30 20 2d 30 36 30 30 | 0a 4f 72 67 61 6e 69 7a |00 -0600|.Organiz|
|000000e0| 61 74 69 6f 6e 3a 20 4e | 61 74 69 6f 6e 61 6c 20 |ation: N|ational |
|000000f0| 4b 6e 6f 77 6c 65 64 67 | 65 20 4e 65 74 77 6f 72 |Knowledg|e Networ|
|00000100| 6b 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 50 |k.Messag|e-ID: <P|
|00000110| 69 6e 65 2e 4c 4e 58 2e | 33 2e 39 31 2e 39 36 30 |ine.LNX.|3.91.960|
|00000120| 33 31 39 31 33 32 35 31 | 36 2e 39 32 30 34 41 2d |31913251|6.9204A-|
|00000130| 31 30 30 30 30 30 40 61 | 70 70 6c 69 6e 6b 3e 0a |100000@a|pplink>.|
|00000140| 52 65 66 65 72 65 6e 63 | 65 73 3a 20 3c 77 6f 7a |Referenc|es: <woz|
|00000150| 71 39 6c 63 32 39 63 2e | 66 73 66 40 63 68 65 75 |q9lc29c.|fsf@cheu|
|00000160| 78 2e 65 63 73 2e 75 6d | 61 73 73 2e 65 64 75 3e |x.ecs.um|ass.edu>|
|00000170| 20 3c 77 6f 70 77 61 67 | 6c 70 6a 6f 2e 66 73 66 | <wopwag|lpjo.fsf|
|00000180| 5f 2d 5f 40 63 68 65 75 | 78 2e 65 63 73 2e 75 6d |_-_@cheu|x.ecs.um|
|00000190| 61 73 73 2e 65 64 75 3e | 0a 4e 4e 54 50 2d 50 6f |ass.edu>|.NNTP-Po|
|000001a0| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 61 70 70 6c |sting-Ho|st: appl|
|000001b0| 69 6e 6b 2e 61 70 70 6c | 69 6e 6b 2e 6e 65 74 0a |ink.appl|ink.net.|
|000001c0| 4d 69 6d 65 2d 56 65 72 | 73 69 6f 6e 3a 20 31 2e |Mime-Ver|sion: 1.|
|000001d0| 30 0a 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 3a 20 |0.Conten|t-Type: |
|000001e0| 54 45 58 54 2f 50 4c 41 | 49 4e 3b 20 63 68 61 72 |TEXT/PLA|IN; char|
|000001f0| 73 65 74 3d 55 53 2d 41 | 53 43 49 49 0a 58 2d 53 |set=US-A|SCII.X-S|
|00000200| 65 6e 64 65 72 3a 20 68 | 61 73 6b 65 74 74 40 61 |ender: h|askett@a|
|00000210| 70 70 6c 69 6e 6b 0a 49 | 6e 2d 52 65 70 6c 79 2d |pplink.I|n-Reply-|
|00000220| 54 6f 3a 20 3c 77 6f 70 | 77 61 67 6c 70 6a 6f 2e |To: <wop|waglpjo.|
|00000230| 66 73 66 5f 2d 5f 40 63 | 68 65 75 78 2e 65 63 73 |fsf_-_@c|heux.ecs|
|00000240| 2e 75 6d 61 73 73 2e 65 | 64 75 3e 20 0a 0a 4f 6e |.umass.e|du> ..On|
|00000250| 20 31 33 20 4d 61 72 20 | 31 39 39 36 2c 20 4a 61 | 13 Mar |1996, Ja|
|00000260| 63 6b 20 56 69 6e 73 6f | 6e 20 77 72 6f 74 65 3a |ck Vinso|n wrote:|
|00000270| 0a 0a 3e 20 3e 3e 3e 3e | 3e 20 22 4a 56 22 20 3d |..> >>>>|> "JV" =|
|00000280| 3d 20 4a 61 63 6b 20 56 | 69 6e 73 6f 6e 20 3c 6a |= Jack V|inson <j|
|00000290| 76 69 6e 73 6f 6e 40 63 | 68 65 75 78 2e 65 63 73 |vinson@c|heux.ecs|
|000002a0| 2e 75 6d 61 73 73 2e 65 | 64 75 3e 20 77 72 69 74 |.umass.e|du> writ|
|000002b0| 65 73 3a 0a 3e 20 0a 3e | 20 49 20 66 6f 75 6e 64 |es:.> .>| I found|
|000002c0| 20 74 68 65 20 65 72 72 | 6f 72 2e 20 20 54 68 69 | the err|or. Thi|
|000002d0| 73 20 68 61 73 20 74 6f | 20 64 6f 20 77 69 74 68 |s has to| do with|
|000002e0| 20 74 68 65 20 66 61 63 | 74 20 74 68 61 74 20 61 | the fac|t that a|
|000002f0| 20 74 65 6d 70 6c 61 74 | 65 20 6e 65 65 64 73 20 | templat|e needs |
|00000300| 74 6f 0a 3e 20 62 65 20 | 69 6e 73 74 61 6e 74 69 |to.> be |instanti|
|00000310| 61 74 65 64 20 69 6e 20 | 65 61 63 68 20 66 69 6c |ated in |each fil|
|00000320| 65 20 77 68 65 72 65 20 | 69 74 20 69 73 20 75 73 |e where |it is us|
|00000330| 65 64 2e 20 20 49 6e 20 | 67 65 6e 65 72 61 6c 20 |ed. In |general |
|00000340| 74 68 69 73 20 64 6f 65 | 73 6e 27 74 0a 3e 20 62 |this doe|sn't.> b|
|00000350| 69 74 65 20 70 65 6f 70 | 6c 65 2c 20 62 75 74 20 |ite peop|le, but |
|00000360| 77 68 65 6e 20 49 20 77 | 61 6e 74 20 74 6f 20 70 |when I w|ant to p|
|00000370| 61 73 73 20 6d 79 20 63 | 6f 6e 74 61 69 6e 65 72 |ass my c|ontainer|
|00000380| 20 61 72 6f 75 6e 64 20 | 69 74 20 6d 61 79 20 6e | around |it may n|
|00000390| 6f 74 20 67 65 74 0a 3e | 20 69 6e 73 74 61 6e 74 |ot get.>| instant|
|000003a0| 69 61 74 65 64 20 65 6c | 73 65 77 68 65 72 65 20 |iated el|sewhere |
|000003b0| 69 6e 20 74 68 65 20 66 | 69 6c 65 2e 0a 3e 20 0a |in the f|ile..> .|
|000003c0| 3e 20 46 72 6f 6d 20 72 | 65 61 64 69 6e 67 20 74 |> From r|eading t|
|000003d0| 68 69 73 20 67 72 6f 75 | 70 2c 20 69 74 20 61 70 |his grou|p, it ap|
|000003e0| 70 65 61 72 73 20 74 68 | 61 74 20 74 68 65 20 73 |pears th|at the s|
|000003f0| 6f 6c 75 74 69 6f 6e 73 | 20 69 73 20 74 6f 20 61 |olutions| is to a|
|00000400| 64 64 20 61 20 64 75 6d | 6d 79 0a 3e 20 66 75 6e |dd a dum|my.> fun|
|00000410| 63 74 69 6f 6e 20 74 6f | 20 65 61 63 68 20 66 69 |ction to| each fi|
|00000420| 6c 65 20 28 6f 72 20 74 | 6f 20 61 20 63 6f 6d 6d |le (or t|o a comm|
|00000430| 6f 6e 20 2e 68 20 66 69 | 6c 65 29 20 77 69 74 68 |on .h fi|le) with|
|00000440| 20 76 61 72 69 61 62 6c | 65 73 20 6f 66 20 74 68 | variabl|es of th|
|00000450| 65 0a 3e 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |e.> appr|opriate |
|00000460| 74 79 70 65 73 2e 0a 3e | 20 0a 3e 20 69 2e 65 2e |types..>| .> i.e.|
|00000470| 20 0a 3e 20 0a 3e 20 76 | 6f 69 64 20 66 6f 6f 28 | .> .> v|oid foo(|
|00000480| 29 0a 3e 20 7b 0a 3e 20 | 20 20 61 72 72 61 79 3c |).> {.> | array<|
|00000490| 63 6c 61 73 73 31 3e 20 | 63 31 3b 0a 3e 20 20 20 |class1> |c1;.> |
|000004a0| 61 72 72 61 79 3c 63 6c | 61 73 73 32 3e 20 63 32 |array<cl|ass2> c2|
|000004b0| 3b 0a 3e 20 7d 0a 3e 20 | 0a 3e 20 77 69 6c 6c 20 |;.> }.> |.> will |
|000004c0| 63 72 65 61 74 65 20 61 | 72 72 61 79 20 74 65 6d |create a|rray tem|
|000004d0| 70 6c 61 74 65 73 20 66 | 6f 72 20 63 6c 61 73 73 |plates f|or class|
|000004e0| 31 20 61 6e 64 20 63 6c | 61 73 73 32 20 73 6f 20 |1 and cl|ass2 so |
|000004f0| 74 68 65 79 20 63 61 6e | 20 62 65 20 75 73 65 64 |they can| be used|
|00000500| 20 69 6e 0a 3e 20 74 68 | 65 20 63 6f 64 65 20 69 | in.> th|e code i|
|00000510| 6e 20 74 68 65 20 67 69 | 76 65 6e 20 66 69 6c 65 |n the gi|ven file|
|00000520| 2e 0a 3e 20 0a 3e 20 57 | 68 65 72 65 20 63 61 6e |..> .> W|here can|
|00000530| 20 49 20 72 65 61 64 20 | 75 70 20 6f 6e 20 74 68 | I read |up on th|
|00000540| 65 20 72 61 74 69 6f 6e | 61 6c 65 20 66 6f 72 20 |e ration|ale for |
|00000550| 74 68 69 73 2e 0a 0a 0a | 49 20 64 6f 6e 27 74 20 |this....|I don't |
|00000560| 6c 69 6b 65 20 74 68 65 | 20 6c 6f 6f 6b 73 20 6f |like the| looks o|
|00000570| 66 20 74 68 69 73 20 73 | 6f 6c 75 74 69 6f 6e 2e |f this s|olution.|
|00000580| 20 20 55 6e 6c 65 73 73 | 20 49 20 61 6d 20 6d 69 | Unless| I am mi|
|00000590| 73 74 61 6b 65 6e 2c 20 | 69 74 20 61 70 70 65 61 |staken, |it appea|
|000005a0| 72 73 0a 74 68 61 74 20 | 65 76 65 72 79 20 6f 62 |rs.that |every ob|
|000005b0| 6a 65 63 74 20 66 69 6c | 65 20 63 72 65 61 74 65 |ject fil|e create|
|000005c0| 64 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 68 |d based |on the h|
|000005d0| 65 61 64 65 72 20 66 69 | 6c 65 20 74 68 61 74 20 |eader fi|le that |
|000005e0| 63 6f 6e 74 61 69 6e 73 | 0a 66 6f 6f 28 29 20 77 |contains|.foo() w|
|000005f0| 69 6c 6c 20 68 61 76 65 | 20 74 68 65 20 64 65 66 |ill have| the def|
|00000600| 69 6e 69 74 69 6f 6e 20 | 6f 66 20 66 6f 6f 28 29 |inition |of foo()|
|00000610| 20 69 6e 20 69 74 3f 20 | 20 53 6f 20 6f 6e 20 61 | in it? | So on a|
|00000620| 20 6c 61 72 67 65 20 70 | 72 6f 6a 65 63 74 20 6c | large p|roject l|
|00000630| 69 6b 65 0a 77 68 61 74 | 20 49 20 61 6d 20 77 6f |ike.what| I am wo|
|00000640| 72 6b 69 6e 67 20 6f 6e | 2c 20 77 69 74 68 20 68 |rking on|, with h|
|00000650| 75 6e 64 72 65 64 73 20 | 6f 66 20 6f 62 6a 65 63 |undreds |of objec|
|00000660| 74 20 66 69 6c 65 73 2c | 20 66 6f 6f 28 29 20 77 |t files,| foo() w|
|00000670| 69 6c 6c 20 62 65 20 64 | 65 66 69 6e 65 64 0a 69 |ill be d|efined.i|
|00000680| 6e 20 61 6c 6c 20 6f 66 | 20 74 68 65 6d 3f 20 20 |n all of| them? |
|00000690| 4e 6f 74 20 74 6f 20 6d | 65 6e 74 69 6f 6e 20 74 |Not to m|ention t|
|000006a0| 68 65 20 61 64 64 65 64 | 20 69 6e 66 6f 72 6d 61 |he added| informa|
|000006b0| 74 69 6f 6e 20 6e 65 63 | 65 73 73 61 72 79 20 74 |tion nec|essary t|
|000006c0| 6f 0a 69 6e 73 74 61 6e | 74 69 61 74 65 20 74 68 |o.instan|tiate th|
|000006d0| 61 74 20 74 65 6d 70 6c | 61 74 65 20 66 6f 72 20 |at templ|ate for |
|000006e0| 65 76 65 72 79 20 6f 62 | 6a 65 63 74 20 66 69 6c |every ob|ject fil|
|000006f0| 65 2c 20 6e 65 65 64 65 | 64 20 6f 72 20 6e 6f 74 |e, neede|d or not|
|00000700| 2e 20 0a 0a 2d 42 72 69 | 61 6e 0a |. ..-Bri|an. |
+--------+-------------------------+-------------------------+--------+--------+